package edu.sctu.practice.class02.zengguangchuan.assign03.test1;

/**
 * Created by lenovo0 on 2015/10/29.
 */
public class StaticMethodClass {
    static boolean equalArea(GeometricObject object1, GeometricObject object2) {
        boolean f = false;
        if (object1.findArea() == object2.findArea()) {
            f = true;
        }
        return f;
    }

    static void displayGeometricObject(GeometricObject object) {
        System.out.println(object + "'s color is : " + object.color);
        System.out.println(object + "'s area is : " + object.findArea());
        System.out.println(object + "'s perimeter is : " + object.findPerimeter());
    }
}
